<div class="hd-20170222">
  <div class="hd-banner-bg banner-bg1">
    <div class="hd-banenr">
      <div class="banner-text">
          Entrar <a href="#">Geekvida.es &gt;&gt;</a>
      </div>
    </div>
  </div>
  <div class="hd-main-content">
      <div class="hd-display-block">
        <div class="panel-layout">
          <ul class="">
            <li><a class="hdPageLInk" href="#display1">XIAOMI</a></li>
            <li><a class="hdPageLInk" href="#display2">IPHONE</a></li>
            <li><a class="hdPageLInk" href="#display3">Móviles Reformados</a></li>
            <li style="border:none;"><a class="hdPageLInk" href="#display4">GADGETS</a></li>
          </ul>
        </div>
      </div>
  </div>
</div>
<style>
  .hd-20170222{background: #fff;min-width: 1300px;}
  .hd-20170222 .banner-bg1{background: url(./images/201702221.jpg)no-repeat center top;height:576px;min-width: 1300px;position: relative;}
  .hd-20170222 .hd-banenr{height:576px;position: relative;width: 1103px;margin: 0px auto;}
  .hd-banenr .banner-text{position: absolute; right: 0px; font-size: 14px; width: 195px; text-align: center; background: #fff; padding: 5px; color: #000;border: 1px solid #dedede;}
  .hd-banenr .banner-text a {color:#ff5500;font-weight: bold;}
  .hd-main-content {background:url(./images/201702228.jpg) fixed no-repeat center top;text-align:center;}
  .hd-display-container .hdPageTitle {padding: 45px 0px 30px;margin-bottom: 0px;}
  .hdPageTitle .titleInner {display: inline-block; background: #ff0000; padding: 7px 25px; font-size: 25px; text-transform: uppercase; color: #fff; font-weight: lighter; min-width: 180px;font-family: Arial;}
  .hd-link-img .product-info {display: block;height:30px;line-height:15px;overflow: hidden;margin:0px 0px 5px;padding:0px 10px;}
  .hd-main-content .small-list:hover .product-info {transform: scale(0,0);-webkit-transform: scale(0,0);-ms-transform: scale(0,0);-o-transform: scale(0,0);opacity: 0;}
  .small-list .hd-link-img {display: block; text-align: center; font-size: 14px; height: 260px; overflow: hidden; position: relative;color:#666;}
  .hd-link-img .zoom span { -webkit-transition: all 0.5s ease; -moz-transition: all 0.5s ease; -ms-transition: all 0.5s ease; -o-transition: all 0.5s ease; transition: all 0.5s ease;}
  .small-list .hd-btn-buy{ width: 100%; position: absolute; left: 0px; bottom: -42px; background: #ff5500; color: #fff; font-size: 18px; height: 40px; line-height: 40px;}
  .small-list:hover .hd-btn-buy {bottom:0px;}
  .hd-main-content .price {display: block;}
  .hd-main-content .small-list:hover .price {transform: translateY(-38px);-webkit-transform: translateY(-38px); -o-transform: translateY(-38px); -ms-transform: translateY(-38px); -moz-transform: translateY(-38px);}
  .hd-main-content .current-price { font-size: 28px;font-weight: bold;color: #ff5500;line-height: 22px;}
  .hd-main-content .old-price {font-size: 14px;text-decoration: line-through;color:#333;display: block;}
  .hd-product-list .list {background:#fff;}
  .hd-product-list .list:hover img {opacity: 0.8;}
  .list0 .list img.bIgImg {display:block;}
  .small-list .discount-number2{position: absolute; height: 50px; width: 50px; font-size: 18px; color: #fff; top: 0px; right: 0px; line-height: 50px; text-align: center; background: #ff5500; border-radius: 50%; font-weight: bold;}
  ul li.small-list {width:189px;background:#fff;border: 1px solid #d2d2d2;}
  ul li.small-list:before{pointer-events: none;position: absolute;z-index: -1;content: '';top: 100%;left: 5%;height: 10px;width: 90%;opacity: 0;background: -webkit-radial-gradient(center, ellipse, rgba(0, 0, 0, 0.35) 0%, transparent 80%);background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, transparent 80%);-webkit-transition-duration: 0.3s;transition-duration: 0.3s;-webkit-transition-property: transform, opacity;transition-property: transform, opacity;}
  ul li.small-list:hover:before{opacity: 1;-webkit-transform: translateY(5px);transform: translateY(5px);}
  .hd-20170222 ul li {float: left;position: relative;-webkit-transition: all 0.3s ease; -moz-transition: all 0.3s ease; -ms-transition: all 0.3s ease; -o-transition: all 0.3s ease; transition: all 0.3s ease;margin:5px;}
  .hd-20170222 .hd-product-list {box-shadow: 0px 0px 40px #1A1818;-webkit-box-shadow: 0px 0px 40px #1A1818;padding: 8px 3px 5px 8px;}
  .hd-product-list .lis1 {margin:0px;}
  ul li.small-list:hover,.product-list ul li:hover {transform: translateY(-6px);-webkit-transform: translateY(-6px); -o-transform: translateY(-6px); -ms-transform: translateY(-6px); -moz-transform: translateY(-6px);}
  ul li.small-list .product-img {width: 100%; padding: 10px; box-sizing: border-box;}
 .panel-layout{width:100%; position: fixed; top: 0; text-align: center;background:#d1effb;-webkit-box-shadow: 0px 0px 40px #1A1818;-ms-box-shadow: 0px 0px 40px #1A1818;-o-box-shadow: 0px 0px 40px #1A1818;box-shadow: 0px 0px 40px #1A1818;display: none;}
.panel-layout .panel-top {position: absolute; left: 0px; z-index: 999; top: 0px;}
.panel-layout ul li{list-style: none; display: inline-block; width:calc(100% / 4 - 1px);margin:0px;border-right:1px solid #7AB3DF;}
.panel-layout ul li a{ color: #000; text-align: center; display: inline-block; padding: 10px 0px; font-size: 20px; text-transform: uppercase; font-weight: lighter; font-family: Arial;width: 100%;}
.panel-layout ul li.current a,.panel-layout ul li a:hover{color:#fff;}
.panel-layout ul li.current,.panel-layout ul li:hover {background: #ff0000;}
.panel-layout ul li.hdLinkTop {height:40px;} 
</style>

<script type="text/javascript">
  (function($){
      $(function(){
        var str1 = '', str2 = '', str3 = '';
          for(var i = 0; i < 15; i++){
            str1 += `<li class="small-list">
                      <a class="hd-link-img" href="#">
                      <img class="product-img" src="./images/2016040616.jpg" alt="Blackview Ultra A6 Plus 2GB 16GB Dorado">
                      <div class="zoom">
                        <span class="product-info">Blackview Ultra A6 Plus 2GB 16GB Dorado</span>
                        <span class="price">
                          <span class="old-price">129.95€</span>
                          <span class="current-price">99.95€</span>
                        </span>
                        <span class="hd-btn-buy">Comprar</span>
                      </div>
                    </a>
                    <span class="discount-number2">-25€</span>
                  </li>`;
          }
          
          for(var i = 0; i < 4; i++){
            str3 = '';
            for(var j = 0; j < 5; j ++){
              str3 += `<li class="list">
                          <a href="#"><img class="bIgImg" src="./images/20170222${j < 3 ? j+2:j+6}.jpg" alt="Redmi Note 3 Pro 3GB 32GB Plata"></a>
                        </li>`;
            }
            str2 += `<div class="hd-display-container" id="display${i+1}">
                      <h2 class="hdPageTitle"><span class="titleInner">Xiaomi</span></h2> 
                      <div class="hd-product-list w1010">
                        <ul class="list0 clearfloat">${str3}</ul>
                        <div style="height:10px;"></div>
                        <ul class="lis1 clearfloat">${str1}</ul>
                      </div>
                  </div>`
          }
          $(".hd-main-content").prepend(str2);

        var sideNav = $(".panel-layout");
        $(window).on("scroll",function(){
          var sideNavShow = $(".hd-banner-bg").offset().top + $(".hd-banner-bg").outerHeight(true)-80;
          var modTop = [];
          if($(this).scrollTop()>=sideNavShow){
              sideNav.slideDown(600);;
            }
            else{
              sideNav.slideUp(600);
            }
          
          for (var i = 0; i < $(".panel-layout ul li .hdPageLInk").length; i++) {
              modTop[i] = $($(".panel-layout ul li a").eq(i).attr("href")).offset().top-40;

              if ($(window).scrollTop() >= modTop[i]) {
                $(".panel-layout ul li").removeClass('current').eq(i).addClass('current');
              };
            };
        });
        
        sideNav.find("li").find(".hdPageLInk").on("click",function(e){
          e.preventDefault();
          var aHash = this.hash;
          $("html,body").animate({
            scrollTop: $(aHash).offset().top-35
          });
        });
      });
  })(jQuery); 
</script>